package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.qhse;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyPlan;

import java.util.List;
import java.util.Map;

public interface ContingencyPlanMapper {
    /**
     *根据ids删除应急预案
     * @param contingencyPlanId
     * @return
     */
    int deleteByPrimaryKey(String[] contingencyPlanId);
    /**
     * 新增应急预案
     * @param record
     * @return
     */
    int insertSelective(ContingencyPlan record);
    /**
     * 根据id查询
     * @param contingencyPlanId
     * @return
     */
    ContingencyPlan selectByPrimaryKey(String contingencyPlanId);

    /**
     * 根据id更新应急预案
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ContingencyPlan record);
    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);
    /**
     * 查询应急预案列表
     * @param bootstrapSearchBean
     * @return
     */
    List<ContingencyPlan> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 判断应急预案名是否存在
     * @param searhMap
     * @return
     */
    int isExitByName(Map<String, Object> searhMap);
}